package com.qf.zhijia.mapper;

import com.qf.zhijia.pojo.Kind;
import com.qf.zhijia.pojo.Type;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Canaan
 * @version V1.0
 * @data 2020/09/05
 **/
@Component
public interface KindMapper {

    /**
     * 点击分类展示所有的二级类
     * @param kId
     * @return
     */
    @Select("select t_id,t_name,k_id,theme_id from type where k_id = #{kId}")
    List<Type> selectById(Integer kId);
}
